﻿
	using System; 
	using System.Collections;
	using System.Collections.Generic ;
	using System.Runtime.Serialization;

namespace UFIDA.U9.Cust.SH.SHFastShipBE
{
	/// <summary>
	/// 快速出货 缺省DTO 
	/// 
	/// </summary>
	[DataContract(Name = "UFIDA.U9.Cust.SH.SHFastShipBE.SHFastShipData", Namespace = "http://www.UFIDA.org/EntityData",IsReference=true)]	
	[Serializable]
    [KnownType("GetKnownTypes")]
	public partial class SHFastShipData : UFSoft.UBF.Business.DataTransObjectBase
	{

	    public static IList<Type> GetKnownTypes()
        {
            IList<Type> knownTypes = new List<Type>();
            
                        
                        
                        
                        
                        
                                        knownTypes.Add(typeof(UFIDA.U9.SM.Ship.ShipDocTypeData));
                        
                        
                                        knownTypes.Add(typeof(UFIDA.U9.SM.Ship.ShipData));
                                        knownTypes.Add(typeof(UFIDA.U9.CBO.SCM.Customer.CustomerData));
                        
                                        knownTypes.Add(typeof(UFIDA.U9.CBO.SCM.Warehouse.WarehouseData));
                        
                                        knownTypes.Add(typeof(UFIDA.U9.CBO.SCM.Customer.CustomerData));
                                        knownTypes.Add(typeof(UFIDA.U9.Base.FlexField.ValueSet.DefineValueData));
                        
                                        knownTypes.Add(typeof(UFIDA.U9.Base.Organization.OrganizationData));
                                        knownTypes.Add(typeof(List<UFIDA.U9.Cust.SH.SHFastShipBE.SHFastShipLineData>));
                                        knownTypes.Add(typeof(UFIDA.U9.CBO.SCM.Warehouse.WarehouseData));
                        
                                        knownTypes.Add(typeof(UFIDA.U9.CBO.HR.Department.DepartmentData));
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                        
                                        knownTypes.Add(typeof(UFIDA.U9.CBO.SCM.Customer.CustomerData));
                                        knownTypes.Add(typeof(UFIDA.U9.CBO.SCM.Customer.CustomerData));
                        
                        
                        
                        
                        
                        
                        
                        
                        
            
                knownTypes.Add(typeof(UFSoft.UBF.Util.Data.MultiLangDataDict));
            return knownTypes;
        }
		/// <summary>
		/// Default Constructor
		/// </summary>
		public SHFastShipData()
		{
			initData() ;
		}
		private void initData()
		{
			//设置默认值
	     			
	     			
	     			
	     			
	     			
	     							SysVersion= 0; 			     			
	     			
	     			
	     			
	     			
	     			
	     			
	     							IsZY=false; 
	     			
	     			
	     							DocState= 0; 			     			
	     			
	     			
	     			
	     			
	     							CreditNoCheck=false; 
	     							Credit=0m; 
	     			
	     			
	     			
	     			
	     							TotalAmount=0m; 
	     			
	     			
	     			
	     			
	     			
	     			
	     							IsZT=false; 
	     							TBAmount=0m; 
	     			
	     			
	     			
	     							GSCheck=false; 
	     							KHCheck=false; 
	     			
	     							Reserved=false; 


			//设置组合的集合属性为List<>对象. -目前直接在属性上处理.
			
			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}		
		[System.Runtime.Serialization.OnDeserializing]
        internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
        {
			 initData();
        }
        
		#region System Fields
		///<summary>
		/// 实体类型. 
		/// </summary>
		[DataMember(IsRequired=false)]
		public override string SysEntityType
		{
			get { return "UFIDA.U9.Cust.SH.SHFastShipBE.SHFastShip" ;}
		}
		#endregion


		
		#region Properties Inner Component
	        					/// <summary>
		/// 单据状态
		/// 快速出货.Misc.单据状态
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Int32 m_docState;
		public System.Int32 DocState
		{
			get	
			{	
				return m_docState ;
			}
			set	
			{	
				m_docState = value ;
			}
		}		

			        					/// <summary>
		/// 快速出货行
		/// 快速出货.Misc.快速出货行
		/// </summary>
		[DataMember(IsRequired=false)]
		private List<UFIDA.U9.Cust.SH.SHFastShipBE.SHFastShipLineData> m_sHFastShipLine;
		public List<UFIDA.U9.Cust.SH.SHFastShipBE.SHFastShipLineData> SHFastShipLine
		{
			get	
			{	
				if (m_sHFastShipLine == null)
				{
					List<UFIDA.U9.Cust.SH.SHFastShipBE.SHFastShipLineData> m_list = new List<UFIDA.U9.Cust.SH.SHFastShipBE.SHFastShipLineData>() ;
					m_sHFastShipLine = m_list;
				}
				return m_sHFastShipLine ;
			}
			set	
			{	
				m_sHFastShipLine = value ;
			}
		}		

			
		#endregion	

		#region Properties Outer Component
		
				/// <summary>
		/// ID
		/// 快速出货.Key.ID
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Int64 m_iD ;
		public System.Int64 ID
		{
			get	
			{	
				return m_iD  ;
			}
			set	
			{	
				m_iD = value ;	
			}
		}
		

				/// <summary>
		/// 创建时间
		/// 快速出货.Sys.创建时间
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.DateTime m_createdOn ;
		public System.DateTime CreatedOn
		{
			get	
			{	
				return m_createdOn  ;
			}
			set	
			{	
				m_createdOn = value ;	
			}
		}
		

				/// <summary>
		/// 创建人
		/// 快速出货.Sys.创建人
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_createdBy ;
		public System.String CreatedBy
		{
			get	
			{	
				return m_createdBy  ;
			}
			set	
			{	
				m_createdBy = value ;	
			}
		}
		

				/// <summary>
		/// 修改时间
		/// 快速出货.Sys.修改时间
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.DateTime m_modifiedOn ;
		public System.DateTime ModifiedOn
		{
			get	
			{	
				return m_modifiedOn  ;
			}
			set	
			{	
				m_modifiedOn = value ;	
			}
		}
		

				/// <summary>
		/// 修改人
		/// 快速出货.Sys.修改人
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_modifiedBy ;
		public System.String ModifiedBy
		{
			get	
			{	
				return m_modifiedBy  ;
			}
			set	
			{	
				m_modifiedBy = value ;	
			}
		}
		

				/// <summary>
		/// 事务版本
		/// 快速出货.Sys.事务版本
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Int64 m_sysVersion ;
		public System.Int64 SysVersion
		{
			get	
			{	
				return m_sysVersion  ;
			}
			set	
			{	
				m_sysVersion = value ;	
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_docType_SKey ;
		/// <summary>
		/// 单据类型 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.单据类型
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey DocType_SKey
		{
			get 
			{
				return m_docType_SKey ;					
			}
			set
			{
				 m_docType_SKey = value ;	
			}
		}
		/// <summary>
		/// 单据类型
		/// 快速出货.Misc.单据类型
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 DocType
		{
			get	
			{	
				if (DocType_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return DocType_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					DocType_SKey = null ;
				else
				{
					if (DocType_SKey == null )
						DocType_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.SM.Ship.ShipDocType") ;
					else
						DocType_SKey.ID = value ;
				}
			}
		}
		

				/// <summary>
		/// 单号
		/// 快速出货.Misc.单号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_docNo ;
		public System.String DocNo
		{
			get	
			{	
				return m_docNo  ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
		

				/// <summary>
		/// 出货单号
		/// 快速出货.Misc.出货单号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_shipDocNo ;
		public System.String ShipDocNo
		{
			get	
			{	
				return m_shipDocNo  ;
			}
			set	
			{	
				m_shipDocNo = value ;	
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_shipDoc_SKey ;
		/// <summary>
		/// 出货单 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.出货单
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey ShipDoc_SKey
		{
			get 
			{
				return m_shipDoc_SKey ;					
			}
			set
			{
				 m_shipDoc_SKey = value ;	
			}
		}
		/// <summary>
		/// 出货单
		/// 快速出货.Misc.出货单
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 ShipDoc
		{
			get	
			{	
				if (ShipDoc_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return ShipDoc_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					ShipDoc_SKey = null ;
				else
				{
					if (ShipDoc_SKey == null )
						ShipDoc_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.SM.Ship.Ship") ;
					else
						ShipDoc_SKey.ID = value ;
				}
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_customer_SKey ;
		/// <summary>
		/// 客户 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.客户
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey Customer_SKey
		{
			get 
			{
				return m_customer_SKey ;					
			}
			set
			{
				 m_customer_SKey = value ;	
			}
		}
		/// <summary>
		/// 客户
		/// 快速出货.Misc.客户
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 Customer
		{
			get	
			{	
				if (Customer_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return Customer_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					Customer_SKey = null ;
				else
				{
					if (Customer_SKey == null )
						Customer_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.CBO.SCM.Customer.Customer") ;
					else
						Customer_SKey.ID = value ;
				}
			}
		}
		

				/// <summary>
		/// 单据日期
		/// 快速出货.Misc.单据日期
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.DateTime m_docDate ;
		public System.DateTime DocDate
		{
			get	
			{	
				return m_docDate  ;
			}
			set	
			{	
				m_docDate = value ;	
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_saleWH_SKey ;
		/// <summary>
		/// 总经销仓库 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.总经销仓库
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey SaleWH_SKey
		{
			get 
			{
				return m_saleWH_SKey ;					
			}
			set
			{
				 m_saleWH_SKey = value ;	
			}
		}
		/// <summary>
		/// 总经销仓库
		/// 快速出货.Misc.总经销仓库
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 SaleWH
		{
			get	
			{	
				if (SaleWH_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return SaleWH_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					SaleWH_SKey = null ;
				else
				{
					if (SaleWH_SKey == null )
						SaleWH_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.CBO.SCM.Warehouse.Warehouse") ;
					else
						SaleWH_SKey.ID = value ;
				}
			}
		}
		

				/// <summary>
		/// 直运
		/// 快速出货.Misc.直运
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Boolean m_isZY ;
		public System.Boolean IsZY
		{
			get	
			{	
				return m_isZY  ;
			}
			set	
			{	
				m_isZY = value ;	
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_zYCustomer_SKey ;
		/// <summary>
		/// 直运客户 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.直运客户
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey ZYCustomer_SKey
		{
			get 
			{
				return m_zYCustomer_SKey ;					
			}
			set
			{
				 m_zYCustomer_SKey = value ;	
			}
		}
		/// <summary>
		/// 直运客户
		/// 快速出货.Misc.直运客户
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 ZYCustomer
		{
			get	
			{	
				if (ZYCustomer_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return ZYCustomer_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					ZYCustomer_SKey = null ;
				else
				{
					if (ZYCustomer_SKey == null )
						ZYCustomer_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.CBO.SCM.Customer.Customer") ;
					else
						ZYCustomer_SKey.ID = value ;
				}
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_saleType_SKey ;
		/// <summary>
		/// 销售业务类型 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.销售业务类型
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey SaleType_SKey
		{
			get 
			{
				return m_saleType_SKey ;					
			}
			set
			{
				 m_saleType_SKey = value ;	
			}
		}
		/// <summary>
		/// 销售业务类型
		/// 快速出货.Misc.销售业务类型
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 SaleType
		{
			get	
			{	
				if (SaleType_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return SaleType_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					SaleType_SKey = null ;
				else
				{
					if (SaleType_SKey == null )
						SaleType_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.Base.FlexField.ValueSet.DefineValue") ;
					else
						SaleType_SKey.ID = value ;
				}
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_org_SKey ;
		/// <summary>
		/// 运营组织 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.运营组织
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey Org_SKey
		{
			get 
			{
				return m_org_SKey ;					
			}
			set
			{
				 m_org_SKey = value ;	
			}
		}
		/// <summary>
		/// 运营组织
		/// 快速出货.Misc.运营组织
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 Org
		{
			get	
			{	
				if (Org_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return Org_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					Org_SKey = null ;
				else
				{
					if (Org_SKey == null )
						Org_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.Base.Organization.Organization") ;
					else
						Org_SKey.ID = value ;
				}
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_wH_SKey ;
		/// <summary>
		/// 仓库 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.仓库
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey WH_SKey
		{
			get 
			{
				return m_wH_SKey ;					
			}
			set
			{
				 m_wH_SKey = value ;	
			}
		}
		/// <summary>
		/// 仓库
		/// 快速出货.Misc.仓库
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 WH
		{
			get	
			{	
				if (WH_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return WH_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					WH_SKey = null ;
				else
				{
					if (WH_SKey == null )
						WH_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.CBO.SCM.Warehouse.Warehouse") ;
					else
						WH_SKey.ID = value ;
				}
			}
		}
		

				/// <summary>
		/// 备注
		/// 快速出货.Misc.备注
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_memo ;
		public System.String Memo
		{
			get	
			{	
				return m_memo  ;
			}
			set	
			{	
				m_memo = value ;	
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_dept_SKey ;
		/// <summary>
		/// 部门 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.部门
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey Dept_SKey
		{
			get 
			{
				return m_dept_SKey ;					
			}
			set
			{
				 m_dept_SKey = value ;	
			}
		}
		/// <summary>
		/// 部门
		/// 快速出货.Misc.部门
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 Dept
		{
			get	
			{	
				if (Dept_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return Dept_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					Dept_SKey = null ;
				else
				{
					if (Dept_SKey == null )
						Dept_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.CBO.HR.Department.Department") ;
					else
						Dept_SKey.ID = value ;
				}
			}
		}
		

				/// <summary>
		/// 信用免检
		/// 快速出货.Misc.信用免检
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Boolean m_creditNoCheck ;
		public System.Boolean CreditNoCheck
		{
			get	
			{	
				return m_creditNoCheck  ;
			}
			set	
			{	
				m_creditNoCheck = value ;	
			}
		}
		

				/// <summary>
		/// 信用余额
		/// 快速出货.Misc.信用余额
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_credit ;
		public System.Decimal Credit
		{
			get	
			{	
				return m_credit  ;
			}
			set	
			{	
				m_credit = value ;	
			}
		}
		

				/// <summary>
		/// 审核人
		/// 快速出货.Misc.审核人
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_approveMan ;
		public System.String ApproveMan
		{
			get	
			{	
				return m_approveMan  ;
			}
			set	
			{	
				m_approveMan = value ;	
			}
		}
		

				/// <summary>
		/// 审核日期
		/// 快速出货.Misc.审核日期
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.DateTime m_approveDate ;
		public System.DateTime ApproveDate
		{
			get	
			{	
				return m_approveDate  ;
			}
			set	
			{	
				m_approveDate = value ;	
			}
		}
		

				/// <summary>
		/// 弃审人
		/// 快速出货.Misc.弃审人
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_unApproveMan ;
		public System.String UnApproveMan
		{
			get	
			{	
				return m_unApproveMan  ;
			}
			set	
			{	
				m_unApproveMan = value ;	
			}
		}
		

				/// <summary>
		/// 弃审日期
		/// 快速出货.Misc.弃审日期
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.DateTime m_unApproveDate ;
		public System.DateTime UnApproveDate
		{
			get	
			{	
				return m_unApproveDate  ;
			}
			set	
			{	
				m_unApproveDate = value ;	
			}
		}
		

				/// <summary>
		/// 总金额
		/// 快速出货.Misc.总金额
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_totalAmount ;
		public System.Decimal TotalAmount
		{
			get	
			{	
				return m_totalAmount  ;
			}
			set	
			{	
				m_totalAmount = value ;	
			}
		}
		

				/// <summary>
		/// 消费者
		/// 快速出货.Misc.消费者
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_finalCustomer ;
		public System.String FinalCustomer
		{
			get	
			{	
				return m_finalCustomer  ;
			}
			set	
			{	
				m_finalCustomer = value ;	
			}
		}
		

				/// <summary>
		/// 电话
		/// 快速出货.Misc.电话
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_phone ;
		public System.String Phone
		{
			get	
			{	
				return m_phone  ;
			}
			set	
			{	
				m_phone = value ;	
			}
		}
		

				/// <summary>
		/// 详细地址
		/// 快速出货.Misc.详细地址
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_address ;
		public System.String Address
		{
			get	
			{	
				return m_address  ;
			}
			set	
			{	
				m_address = value ;	
			}
		}
		

				/// <summary>
		/// 淘宝订单号
		/// 快速出货.Misc.淘宝订单号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_tBDocNo ;
		public System.String TBDocNo
		{
			get	
			{	
				return m_tBDocNo  ;
			}
			set	
			{	
				m_tBDocNo = value ;	
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_agency_SKey ;
		/// <summary>
		/// 经销商 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.经销商
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey Agency_SKey
		{
			get 
			{
				return m_agency_SKey ;					
			}
			set
			{
				 m_agency_SKey = value ;	
			}
		}
		/// <summary>
		/// 经销商
		/// 快速出货.Misc.经销商
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 Agency
		{
			get	
			{	
				if (Agency_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return Agency_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					Agency_SKey = null ;
				else
				{
					if (Agency_SKey == null )
						Agency_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.CBO.SCM.Customer.Customer") ;
					else
						Agency_SKey.ID = value ;
				}
			}
		}
		

		
		private UFSoft.UBF.Business.BusinessEntity.EntityKey m_generalAgency_SKey ;
		/// <summary>
		/// 总经销商 序列化Key属性。（传递跨组织序列列字段）
		/// 快速出货.Misc.总经销商
		/// </summary>
		[DataMember(IsRequired=false)]
		public UFSoft.UBF.Business.BusinessEntity.EntityKey GeneralAgency_SKey
		{
			get 
			{
				return m_generalAgency_SKey ;					
			}
			set
			{
				 m_generalAgency_SKey = value ;	
			}
		}
		/// <summary>
		/// 总经销商
		/// 快速出货.Misc.总经销商
		/// </summary>
		[DataMember(IsRequired=false)]
		public System.Int64 GeneralAgency
		{
			get	
			{	
				if (GeneralAgency_SKey == null)
					return UFSoft.UBF.Business.Entity.EmptyObjectValue ;
				else
					return GeneralAgency_SKey.ID ;
			}
			set	
			{	
				if (value == 0 || value == UFSoft.UBF.Business.Entity.EmptyObjectValue )
					GeneralAgency_SKey = null ;
				else
				{
					if (GeneralAgency_SKey == null )
						GeneralAgency_SKey = new UFSoft.UBF.Business.BusinessEntity.EntityKey(value,"UFIDA.U9.CBO.SCM.Customer.Customer") ;
					else
						GeneralAgency_SKey.ID = value ;
				}
			}
		}
		

				/// <summary>
		/// 是否自提
		/// 快速出货.Misc.是否自提
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Boolean m_isZT ;
		public System.Boolean IsZT
		{
			get	
			{	
				return m_isZT  ;
			}
			set	
			{	
				m_isZT = value ;	
			}
		}
		

				/// <summary>
		/// 淘宝成交额
		/// 快速出货.Misc.淘宝成交额
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Decimal m_tBAmount ;
		public System.Decimal TBAmount
		{
			get	
			{	
				return m_tBAmount  ;
			}
			set	
			{	
				m_tBAmount = value ;	
			}
		}
		

				/// <summary>
		/// 返款日期
		/// 快速出货.Misc.返款日期
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.DateTime m_rebatesDate ;
		public System.DateTime RebatesDate
		{
			get	
			{	
				return m_rebatesDate  ;
			}
			set	
			{	
				m_rebatesDate = value ;	
			}
		}
		

				/// <summary>
		/// 总编号
		/// 快速出货.Misc.总编号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_totalNo ;
		public System.String TotalNo
		{
			get	
			{	
				return m_totalNo  ;
			}
			set	
			{	
				m_totalNo = value ;	
			}
		}
		

				/// <summary>
		/// 门店单号
		/// 快速出货.Misc.门店单号
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_mDDocNo ;
		public System.String MDDocNo
		{
			get	
			{	
				return m_mDDocNo  ;
			}
			set	
			{	
				m_mDDocNo = value ;	
			}
		}
		

				/// <summary>
		/// 公司确认
		/// 快速出货.Misc.公司确认
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Boolean m_gSCheck ;
		public System.Boolean GSCheck
		{
			get	
			{	
				return m_gSCheck  ;
			}
			set	
			{	
				m_gSCheck = value ;	
			}
		}
		

				/// <summary>
		/// 客户确认
		/// 快速出货.Misc.客户确认
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Boolean m_kHCheck ;
		public System.Boolean KHCheck
		{
			get	
			{	
				return m_kHCheck  ;
			}
			set	
			{	
				m_kHCheck = value ;	
			}
		}
		

				/// <summary>
		/// 订单说明
		/// 快速出货.Misc.订单说明
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.String m_mDMemo ;
		public System.String MDMemo
		{
			get	
			{	
				return m_mDMemo  ;
			}
			set	
			{	
				m_mDMemo = value ;	
			}
		}
		

				/// <summary>
		/// 预留
		/// 快速出货.Misc.预留
		/// </summary>
		[DataMember(IsRequired=false)]
		private System.Boolean m_reserved ;
		public System.Boolean Reserved
		{
			get	
			{	
				return m_reserved  ;
			}
			set	
			{	
				m_reserved = value ;	
			}
		}
		
		#endregion	

		#region Multi_Fields
																																												
		#endregion 		
	}	

}

